<%@ page import="apralms.Product" %>



<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'code', 'error')} required">
	<label for="code">
		<g:message code="product.code.label" default="Code" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="code" maxlength="10" required="" value="${productInstance?.code}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="product.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" maxlength="50" required="" value="${productInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'type', 'error')} required">
	<label for="type">
		<g:message code="product.type.label" default="Type" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="type" required="" value="${productInstance?.type}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'profession', 'error')} ">
	<label for="profession">
		<g:message code="product.profession.label" default="Profession" />
		
	</label>
	<g:checkBox name="profession" value="${productInstance?.profession}" />
</div>

<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'finished', 'error')} ">
	<label for="finished">
		<g:message code="product.finished.label" default="Finished" />
		
	</label>
	<g:checkBox name="finished" value="${productInstance?.finished}" />
</div>

<g:hiddenField name="project.id" value="${productInstance?.project?.id}" />
<g:hiddenField name="system.id" value="${productInstance?.system?.id}" />

<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'class1', 'error')} required">
	<label for="class1">
		<g:message code="product.class1.label" default="Class1" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="class1" from="${productInstance.constraints.class1.inList}" required="" value="${productInstance?.class1}" valueMessagePrefix="product.class1"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'class2', 'error')} required">
	<label for="class2">
		<g:message code="product.class2.label" default="Class2" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="class2" from="${productInstance.constraints.class2.inList}" required="" value="${productInstance?.class2}" valueMessagePrefix="product.class2"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'class3', 'error')} required">
	<label for="class3">
		<g:message code="product.class3.label" default="Class3" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="class3" from="${productInstance.constraints.class3.inList}" required="" value="${productInstance?.class3}" valueMessagePrefix="product.class3"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'class4', 'error')} required">
	<label for="class4">
		<g:message code="product.class4.label" default="Class4" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="class4" from="${productInstance.constraints.class4.inList}" required="" value="${productInstance?.class4}" valueMessagePrefix="product.class4"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'class5', 'error')} required">
	<label for="class5">
		<g:message code="product.class5.label" default="Class5" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="class5" from="${productInstance.constraints.class5.inList}" required="" value="${productInstance?.class5}" valueMessagePrefix="product.class5"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'class6', 'error')} required">
	<label for="class6">
		<g:message code="product.class6.label" default="Class6" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="class6" from="${productInstance.constraints.class6.inList}" required="" value="${productInstance?.class6}" valueMessagePrefix="product.class6"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'class7', 'error')} required">
	<label for="class7">
		<g:message code="product.class7.label" default="Class7" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="class7" from="${productInstance.constraints.class7.inList}" required="" value="${productInstance?.class7}" valueMessagePrefix="product.class7"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'class8', 'error')} required">
	<label for="class8">
		<g:message code="product.class8.label" default="Class8" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="class8" from="${productInstance.constraints.class8.inList}" required="" value="${productInstance?.class8}" valueMessagePrefix="product.class8"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'class9', 'error')} required">
	<label for="class9">
		<g:message code="product.class9.label" default="Class9" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="class9" from="${productInstance.constraints.class9.inList}" required="" value="${productInstance?.class9}" valueMessagePrefix="product.class9"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productInstance, field: 'class10', 'error')} required">
	<label for="class10">
		<g:message code="product.class10.label" default="Class10" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="class10" from="${productInstance.constraints.class10.inList}" required="" value="${productInstance?.class10}" valueMessagePrefix="product.class10"/>
</div>

